#ifndef _GL_WIDGET_H
#define _GL_WIDGET_H

#include <QGLWidget>

#include "reine.h"

class GLWidget : public QGLWidget
{
	Q_OBJECT

public:
	GLWidget (QWidget* parent = 0);
	~GLWidget ();

	QSize minimumSizeHint () const;
	QSize sizeHint () const;

protected:
	void initializeGL ();
	void paintGL ();
	void resizeGL (int width, int height);
	void mousePressEvent (QMouseEvent* event);
	void mouseReleaseEvent (QMouseEvent* event);
	void keyPressEvent (QKeyEvent* event);
	void keyReleaseEvent (QKeyEvent* event);

private:
    float rot;
    Reine * black_queen;
};

#endif
